<header class="bhz-header" ng-controller="HeaderCtrl">
    <div class="top-header" ng-if="withTopHeader">
        <div class="w top-header-links-wrap">
            <a href="javascript:void(0);" class="top-header-link" ng-click="jump('/usercenter',true)">我的百货栈</a>
			<a href="javascript:void(0);" class="top-header-link" ng-click="jump('/usercenter/message',true)">我的消息<span ng-if="noReadCount > 0" class="no-read">({{noReadCount}})</span></a>
            <a href="javascript:void(0);" class="top-header-link" ng-click="jump('/usercenter/wishlist',true);">收藏夹</a>
            <a href="javascript:void(0);" class="top-header-link top-header-link-m-qr" ng-click="showMQR();"><i class="icon icon-mobile"></i>掌上百货栈<img src="catalog/view/theme/bhz/pc/images/fw.jpg" id="MQR" class="m-qr" ng-class="{'show':showMQRFlag}"></a>
            <!-- <a href="javascript:void(0);" class="top-header-link" ng-click="jump('/page/contact',true)">客服服务</a> -->
            <a href="http://wpa.qq.com/msgrd?v=3&uin=3463756848&site=qq&menu=yes" target="_blank" class="top-header-link">客服服务</a>
        </div>
    </div>
    <div class="home-top clearfix" ng-if="topbanner && home.banners_top && home.banners_top.length>0" id="TopBanner">
		<div class="swiper-container" id="TopSlider">
      <ul class="swiper-wrapper">
        <li class="swiper-slide" ng-repeat="sliderItem in home.banners_top" on-ng-repeat-end="initSwiper()">
          <a href="javascript:void(0);" style="position: relative;" ng-click="gotoProducts(sliderItem.link);">
          	<img ng-show="!topslider" class="" src="{{sliderItem.image}}">
            <span class="closetop" ng-click="topslider=!topslider">X</span>
          </a>
         </li>
      </ul>
      <div class="swiper-pagination" id="TopSwiperPagination"></div>
    </div>
	</div>
    <div class="main-header clearfix" ng-class="{'usercenter':redHeader}">
        <div class="w">
            <a href="javascript:void(0);" ng-click="jump('home')" class="logo-wrap">
                <img class="logo-img" src="catalog/view/theme/bhz/pc/images/logo.png" ng-if="!redHeader">
                <img class="logo-img" src="catalog/view/theme/bhz/pc/images/logo_white.png" ng-if="redHeader">
                <img class="logo-subtitle-img" src="catalog/view/theme/bhz/pc/images/logo_subtitle.png" ng-if="withSubtitleLogo && !redHeader">
                <img class="logo-subtitle-img" src="catalog/view/theme/bhz/pc/images/logo_subtitle_white.png" ng-if="withSubtitleLogo && redHeader">
            </a>
            <div class="logo-common" ng-if="isLoginOrRegister">欢迎{{page_title}}</div>
            <div class="search-wrap" ng-if="withSearch">
                <div class="search-input-wrap clearfix">
                    <input class="input" type="text" ng-model="params.search" placeholder="请输入产品/店铺关键词" ng-keydown="search($event);" />
                    <a href="javascript:void(0);" class="input-addition" ng-click="search();">搜索</a>
                </div>
            </div>
            <a href="javascript:void(0);" ng-click="jump('cart');" class="cart-wrap" ng-if="withCart">
                <i class="icon icon-top-cart"></i>
                <span class="content">我的进货单</span>
                <div class="cart-bubble-wrap" ng-hide="cartCnt === false">
                    <!-- <i class="icon icon-bubble"></i> -->
                    <span class="cart-cnt {{!cartCnt?'hidden':''}}" id="TopCartCnt" ng-bind="{{cartCnt>999?'999+':'cartCnt'}}"></span>
                </div>
                <i class="icon icon-arrow"></i>
            </a>
        </div>
    </div>
</header>
